﻿#ifndef LOGUTILS_H
#define LOGUTILS_H

//#define QT_NO_DEBUG_OUTPUT 1
#define LOGSIZE 1024 * 1000 * 100 //最大单个日志大小 log size in bytes====100M
#define LOGDAYS 7  //最长日志保存天数

#include <QObject>
#include <QString>
#include <QDebug>
#include <QDate>
#include <QTime>


namespace LOGUTILS
{
const QString logFolderName = "logs";

bool initLogging();
void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString& msg);

}

#endif // LOGUTILS_H
